<?php if (!defined('APP')) die('error'); ?>
<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户管理页面</title>
</head>
<style>
    table{border-collapse: collapse;}
</style>
<body>
<form action="user.php" method="GET">
    <table width="350" border="1">
        <tr>
            <th>ID</th>
            <th>账号</th>
            <th>密码</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>余额</th>

        </tr>
        <?php
        if (!empty($customer)) { ?>
            <?php foreach ($customer as $row){?>
                <tr>
                    <td><input type="text" style="border: 0" value="<?php echo $row['idcustomer'];?>"></td>
                    <td><input type="text" style="border: 0" value="<?php echo $row['customer_account'];?>"></td>
                    <td><input type="text" style="border: 0" value="<?php echo $row['customer_password'];?>"></td>
                    <td><input type="text" style="border: 0" value="<?php echo $row['customer_name'];?>"></td>
                    <td><input type="text" style="border: 0" value="<?php echo $row['customer_age'];?>"></td>
                    <td><input type="text" style="border: 0" value="<?php echo $row['customer_balance'];?>"></td>
                </tr>
            <?php } ?>
        <?php } ?>
    </table>
</form>
</body>
</html>
